text = "你好, Python"

encoded_text = text.encode("ascii", errors="ignore")
print(encoded_text)

decoded_text = encoded_text.decode("ascii", errors="ignore")
print(decoded_text)